body {
    font-family: Arial, sans-serif;
    background: #f5f6fa;
    margin: 0;
    padding: 0;
}
header {
    background: #3498db;
    color: #fff;
    padding: 24px 0 12px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
h1 {
    margin: 0;
    font-size: 2.2em;
    letter-spacing: 2px;
}
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}
a[download] {
    display: inline-block;
    margin-bottom: 18px;
    padding: 10px 28px;
    background: #3498db;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1em;
    transition: background 0.2s;
}
a[download]:hover {
    background: #217dbb;
}
form {
    margin-bottom: 18px;
}
input[type="text"] {
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 220px;
    font-size: 16px;
}
input[type="submit"], button {
    padding: 10px 28px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.2s;
}
input[type="submit"]:hover, button:hover {
    background: #217dbb;
}
#result {
    font-size: 1.1em;
    margin: 10px 0;
}
#outputContent {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    min-width: 320px;
    min-height: 40px;
    margin-top: 10px;
    font-family: "Fira Mono", "Consolas", monospace;
    font-size: 1em;
    color: #333;
    white-space: pre-wrap;      /* 自动换行 */
    word-break: break-all;      /* 长单词换行 */
    max-height: 240px;          /* 最大高度 */
    overflow: auto;             /* 超出滚动 */
}